import request from "@/utils/request";

// 查询试卷题目列表
export function listJuanPaperQuestion(query) {
  return request({
    url: "/juan/juanPaperQuestion/list",
    method: "get",
    params: query,
  });
}

// 查询试卷题目详细
export function getJuanPaperQuestion(paperId) {
  return request({
    url: "/juan/juanPaperQuestion/" + paperId,
    method: "get",
  });
}

// 新增试卷题目
export function addJuanPaperQuestion(data) {
  return request({
    url: "/juan/juanPaperQuestion",
    method: "post",
    data: data,
  });
}

// 修改试卷题目
export function updateJuanPaperQuestion(data) {
  return request({
    url: "/juan/juanPaperQuestion",
    method: "put",
    data: data,
  });
}

// 删除试卷题目
export function delJuanPaperQuestion(paperId) {
  return request({
    url: "/juan/juanPaperQuestion/" + paperId,
    method: "delete",
  });
}
